package com.example.Holo.rework.core;

public final class Event {

    public final long id;
    public final String name;
    public final String comment;
    public int peopleNumber;

    public Event(long id, String name, String comment) {
        this.id = id;
        this.name = name;
        this.comment = comment;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        final Event event = (Event) o;
        return id == event.id;

    }

    @Override
    public int hashCode() {
        return (int) (id ^ (id >>> 32));
    }

    @Override
    public String toString() {
        return "Event{name='" + name + "\', comment='" + comment + "\'}|";
    }

}
